<?php
echo "You are about to recommend ".$recommended_restaurant." to:";

$recommend_user = array(
			'name'        => 'ruser',
			'id'          => 'ruser',
			'value'       => '',
			'maxlength'   => '100',
			'size'        => '30',
            );

$recommend_message = array(
			'name'        => 'rmsg',
			'id'          => 'rmsg',
			'value'       => 'This restaurant is the best!',
			'maxlength'   => '100',
			'size'        => '30',
);

$attributes = array('class' => 'recommendations', 'id' => 'form_recommendations');
echo form_open('', $attributes);

echo "<table border='0' align='center'>";
echo "<tr><td width = '100'>";
echo "User</td><td width = '50'>";
echo form_input($recommend_user);
echo "</td><td id='ruser_display' width = '150'></td></tr>";

echo "<tr><td>";
echo "Message</td><td>";
echo form_input($recommend_message);
echo "</td><td id='rmsg_display' width = '150'></td></tr>";

echo "<tr><td></td><td align='right'>";
echo form_submit('submit', 'Send', 'id="submit_recommendation"');
echo form_close();
echo "</td><td id='submit_recommendation_display' width = '150'></td></tr>";
echo "</table>";
?>